<?php

class Field_Core
{
	public $label;
	public $name;
	
	public function __construct($name)
	{
		$this->name = $name;
	}
	
	public function __call($method, $args)
	{
		$this->$method = $args[0];
		return $this;
	}
	
	public function render()
	{
		return '<strong>'.ucfirst($this->label).'</strong>';
	}
	
	public function put_in_cell($item)
	{
		$property = $this->name;
		return $item->$property;
	}
	
	public function __toString()
	{
		return $this->name;
	}
}
